package request

import "mime/multipart"

// ChunkUploadInitParam 分片初始化参数
type ChunkUploadInitParam struct {
	FileName string `query:"fileName" form:"fileName"`
	FileMD5  string `query:"fileMD5"  form:"fileMD5"`
	FileSize string `query:"fileSize" form:"fileSize"`
}

// ChunkUploadParam 分片上传参数
type ChunkUploadParam struct {
	File     *multipart.FileHeader `form:"file"`
	UploadID string                `form:"uploadId"`
	FileMD5  string                `form:"fileMD5"`
	Index    string                `form:"index"`
}

// ChunkUploadMerge 分片合并参数
type ChunkUploadMerge struct {
	FileName string `form:"fileName" query:"fileName" json:"fileName"`
	UploadID string `form:"uploadId" query:"uploadId" json:"uploadId"`
	FileMD5  string `form:"fileMD5" query:"fileMD5" json:"fileMD5"`
}
